/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  column: [
	  {
      label: '编号',
      prop: 'id'
    },
	  {
      label: '账号',
      prop: 'name',
      search:true,
    },
	  {
      label: '姓名',
      prop: 'realName',
      slot:true
    },
    {
      label: '性别',
      prop: 'sex',
      dicUrl: '/admin/dict/type/gender',
      type: 'radio',
      button:true,
    },
	  {
      label: '心电类型',
      prop: 'ecgType',
      type: 'select',
      dicUrl: '/admin/dict/type/ecgType',
      slot:true
    },
    {
      label: '最近一次测量',
      prop: 'lastCheck'
    },
    {
      label: '设备类型',
      prop: 'deviceType',
      type: 'select',
      dicUrl: '/admin/dict/type/deviceType',
      slot:true
    },
    {
      label: '心脏起搏器',
      prop: 'pacemaker',
      type: 'select',
      dicUrl: '/admin/dict/type/hasPacemaker'
    },
	  // {
    //   label: '备注',
    //   prop: 'remark'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime',
    //   width: 150,
    //   label: '创建时间',
    //   prop: 'createTime',
    //   type: 'datetime',
    //   addDisplay: false,
    //   editDisabled: true,
    //   format: 'yyyy-MM-dd HH:mm',
    //   valueFormat: 'yyyy-MM-dd HH:mm:ss'
    // },
  ]
}
var DIC = {
  BLOODTYPE: [{
      label: 'A型',
      value: 'A型'
  }, {
      label: 'B型',
      value: 'B型'
  }, {
      label: 'AB型',
      value: 'AB型'
  }, {
      label: 'O型',
      value: 'O型'
  }, {
      label: '不明',
      value: '不明'
  }]
}
export const detailOption = {
  group: [{
    icon: 'el-icon-info',
    label: '个人信息',
    prop: 'user',
    column: [{
      label: '编号',
      prop: 'id'
    },
	  {
      label: '密码',
      prop: 'password'
    },
	  {
      label: '姓名',
      prop: 'name'
    },
	  {
      label: '年龄',
      prop: 'age'
    },
    {
      label: '性别',
      prop: 'sex',
      type: 'radio',
      button:true,
      dicUrl: '/admin/dict/type/gender'
    },
    {
      label: '体重',
      prop: 'weight'
    },
	  {
      label: '身高',
      prop: 'stature'
    },
	  {
      label: '婚否',
      prop: 'maritalstatus'
    },
	  {
      label: '血型',
      prop: 'bloodType',
      type: 'select',
      dicData: DIC.BLOODTYPE,
      mock:{
        type:'dic'
      },
    },
	  {
      label: '区域',
      prop: 'area'
    },
	  {
      label: '出生年月',
      prop: 'birthday',
      type: "date",  
      pickerOptions: {
      disabledDate(time) {
        return time.getTime() > Date.now();
      }
      }
    },
	  {
      label: '身份证',
      prop: 'identity'
    },
	  {
      label: '地址',
      prop: 'address'
    },
	  {
      label: '电话',
      prop: 'phone'
    }]
  }, {
    icon: 'el-icon-info',
    label: '病历信息',
    prop: 'medical',
    column: [{
      label: '记录历时',
      prop: 'recordTime'
    },
	  {
      label: '记录类型',
      prop: 'recordType'
    },
	  {
      label: '病历号',
      prop: 'caseNumber'
    },
	  {
      label: '住院号/门诊号',
      prop: 'roomNumber'
    },
	  {
      label: '床号',
      prop: 'bedNumber'
    },
	  {
      label: '开始时间',
      prop: 'timeFromStart'
    },
	  {
      label: '送诊科室',
      prop: 'department'
    },
	  {
      label: '送诊医生',
      prop: 'doctor'
    },
	  {
      label: '记录仪器型号',
      prop: 'instrumentType'
    },
	  {
      label: '数据来源',
      prop: 'datasource'
    },
	  {
      label: '是否有报告',
      prop: 'havaReport'
    },
	  {
      label: '起搏',
      prop: 'isPacemaking'
    },
	  {
      label: '分析',
      prop: 'isAnalysis'
    },
	  {
      label: '临床印象',
      prop: 'historyprofiles'
    },
	  {
      label: '用药情况',
      prop: 'patientDrugs'
    },
	  {
      label: '心电结论',
      prop: 'conclusion'
    }]
  }, {
    icon: 'el-icon-info',
    label: '账号情况',
    prop: 'account',
    column: [{
      label: '记录VLP',
      prop: 'isVlpRecord'
    },
	  {
      label: '0-正常，9-锁定',
      prop: 'lockFlag'
    },
	  {
      label: '备注',
      prop: 'remark'
    }]
  }]
}
